import 'package:flutter/material.dart';

class JKText extends StatelessWidget {

  final String data;
  final Color color;
  final double fontSize;
  final FontWeight weight;
  final TextAlign textAlign;
  final int maxLines;
  final TextOverflow overflow;

  const JKText({Key key, this.data, this.color, this.fontSize, this.weight,this.textAlign,this.maxLines,this.overflow}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Text(data,style: TextStyle(color: color,fontSize: fontSize,fontWeight: weight,),textAlign: textAlign,maxLines: maxLines,overflow: overflow,);
  }
}
